-- GENERATED SPELL FOR [Zarevhi] --


function spell0_22427(pUnit, Event) --@Unlearn Transmutation Mastery,n/a--
pUnit:FullCastSpellOnTarget(41565,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22427', 603, 1)
end

function Sorts_22427(pUnit, Event)
local choix_sorts_22427 = math.random(0, 0)
if choix_sorts_22427 == 0 then
pUnit:RegisterEvent('spell0_22427', 1, 1)
end
end

function mob22427_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22427', math.random(1500, 3000), 1)
end

function mob22427_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22427_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22427_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22427, 1, 'mob22427_Action')
RegisterUnitEvent(22427, 2, 'mob22427_Leave')
RegisterUnitEvent(22427, 3, 'mob22427_Kill')
RegisterUnitEvent(22427, 4, 'mob22427_Die')
